package com.example;

import java.io.*;

public class HelloWorld {
	private Writer out;
	
	public HelloWorld(Writer out) {
		this.out = out;
	}
	
	public void run() throws IOException {
		out.write("Hello, world!");
	}
}